<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>下拉菜单</title>
		<link rel="stylesheet" href="css/bootstrap.min.css" />
	</head>
	<body>
		<div class="container" id="mydropdown">
			<div class="dropdown">
				<!--data-toggle="dropdown" 下拉菜单 添加属性-->
				<button class="btn btn-default" id="dlabel" type="button" data-toggle="dropdown" aria-expanded="flase">
					下拉菜单
					<span class="caret"></span>
				</button>
				<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
					<li>11</li>
					<li>11</li>
					<li>11</li>
					<li>11</li>
					<li>11</li>
					<li>11</li>
				</ul>
			</div>
		</div>
		<script type="text/javascript" src="js/jquery.min.js"></script>
		<script type="text/javascript" src="js/bootstrap.min.js"></script>
		<script type="text/javascript">
		/*
		 *  show.bs.dropdown  显示前
			shown.bs.dropdown 显示后
			hide.bs.dropdown  隐藏前
			hidden.bs.dropdown 隐藏后

		 */
			$("#mydropdown").on("shown.bs.dropdown",function(e){
				alert("你好世界");
			})
		</script>
	</body>
</html>
